function [selectedPop] = hw8Select(population, numHypoToInclude, relativeFit)
% selecting a given set of population based on the fitness values
[sortedFit, fitIndex] = sort(relativeFit, 'descend');
numElem = size(population, 2);
selectedPop = zeros(numHypoToInclude, numElem);
for i=1:numHypoToInclude
    selectedPop(i,:) = population(fitIndex(i), :);
end
